#include<cstdio>
#include<cmath>
const double PI = acos(-1.0);
int main()
{
	int a, b, cnt = 0;
	double x, y, theta;
	while (scanf("%d : %d", &a, &b) != EOF)
	{
		cnt++;
		double k = 1.0 * b / a;
		theta = atan2(b, a);
		x = 200 / (1 + theta * sqrt(k * k + 1));
		y = x * k;
		printf("Case %d: %0.8lf %0.8lf\n", cnt, x, y);
	}
	return 0;
}
